package com.hundsun.yr.universal.library.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;


/**
 * @Title: NoScrollGridView.java 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @date 2015-12-8 下午5:44:18 
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com 
 * @replace author:
 * @replace date:
 * @version V1.0   
 */
public class NoScrollGridView extends GridView {

	public NoScrollGridView(Context context) {
		super(context);
		initWithContext(context);
	}

	public NoScrollGridView(Context context, AttributeSet attrs) {
		super(context, attrs);
		initWithContext(context);
	}

	public NoScrollGridView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		initWithContext(context);
	}

	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
				MeasureSpec.AT_MOST);

		super.onMeasure(widthMeasureSpec, expandSpec);
	}

	private void initWithContext(Context context) {

	}
	
	

}